import os
# s1 = 'powershell "Start-Process cmd -Verb RunAs"'

def cmd_clear_com():
    s = r'rundll32.exe c:\windows\system32\pnpclean.dll,RunDLL_PnpClean /Devices /Maxclean'
    os.popen(s)